﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using System.IO;
using System.Reflection;
using Langexplr.Abc;


namespace AbcLibrary.Tests
{
    [TestFixture]
    public class AbcFileLoadingTests
    {

        [Test]
        public void TestScriptIdentification()
        {

            using (BinaryReader reader = new BinaryReader(Assembly.GetExecutingAssembly().GetManifestResourceStream("AbcLibrary.Tests.files.optionalparameters.as3.abc")))
            {
                AbcFile file = AbcFile.ReadFrom(reader);

                Assert.AreEqual(1, file.Scripts.Length);


            }
        }


     
    }
}
